package edu.whu.notepal.utils;

/**
 * 存储redis中的一些常量数据
 * @author 陈磊
 */
public final class RedisConstants {
    /**
     * 短信验证码过期时间 单位分钟
     */
    public static final Long LOGIN_CODE_TTL = 10L;

    public static final String LOGIN_CODE_KEY = "login:code:";

    public static final String LOGIN_TOKEN_KEY = "login:token:";

    public static final Long LOGIN_TOKEN_TTL = 30L;

    public static final String CHAT_ONLINE_KEY = "chat:online:";

    public static final String CHAT_MSG_BOX = "chat:msgBox:";

    public static final String COLUMN_INFO_KEY = "column:info:";

    public static final Long COLUMN_INFO_TTL = 24L;

    public static final String CONTACTS_USER_KEY = "contacts:user:";

    public static final Long CONTACTS_USER_TTL = 30L;

    public static final String GROUP_INFO_KEY = "group:info:";

    public static final Long GROUP_INFO_TTL = 30L;

    public static final String NOTE_INFO_KEY = "note:info:";

    public static final Long NOTE_INFO_TTL = 30L;

    public static final String PRIVATE_CHAT_INFO_KEY = "privateChat:info:";

    public static final Long PRIVATE_CHAT_INFO_TTL = 30L;

    public static final String USER_INFO_KEY = "user:info:";

    public static final Long USER_INFO_TTL = 1L;

    public static final String GAME_TRUEWORDS = "game:trueWords";

    public static final String GAME_GUESS = "game:guess";

    public static final String GAME_STORY = "game:story";
}